import request from "@/utils/request"

//查询过车单：zhcloud:changeCar:list
export function getChangeCarList(data:any, params:any) {
    return request({
        url: '/storage/changeCar/list',
        method: 'post',
        data: data,
        params:params
    })
}

//详情信息-通过id获取：zhcloud:changeCar:info
export function getChangeCarDetails(data:any) {
    return request({
      url: `/storage/changeCar/detail/${data.changeId}`,
      method: 'get',
      data: null
    })
}

//保存过仓单：zhcloud:changeCar:add
export function setChangeCarAdd(data:any) {
    return request({
        url: '/storage/changeCar/add',
        method: 'put',
        data: data
    })
}

//待作业状态的入仓单货物：zhcloud:changeCar:rcList
export function getSelectStock(data:any, params:any) {
    return request({
        url: '/storage/changeCar/rcList',
        method: 'post',
        data: data,
        params:params
    })
}

//过车出仓->绑定单据详细
export function getChangeCarBindingDetail(data:any) {
    return request({
        url: `/storage/wx/o/detail/${data.changeId}`,
        method: 'get',
        data: {}
    })
  }
  